package toTest;

class toTestFeatherClass {
    public Boolean isBool;

    toTestFeatherClass(Boolean isBool) {
        this.isBool = isBool;
    }


    void sayRun() {
        System.out.println("runrun");
    }
}

public class ReflectTest extends toTestFeatherClass implements ReflectTestInfo, ReflectTest2Info {
    private String funId;
    private String funName;

    public ReflectTest(String funId, String funName, boolean isBool) {
        super(isBool);
        this.funId = funId;
        this.funName = funName;
    }

    public ReflectTest() {
        super(false);
    }

    void toRunThisFun() {
        System.out.println("无参运行");
    }

    void toRunThisFun(String funName) {
        System.out.println("有参运行" + funName);
    }

    private void Print() {
        System.out.println(this.funId + " " + this.funName);
    }

    private void setValue(String funId, String funName, boolean isBool) {
        this.funName = funName;
        this.funId = funId;
        super.isBool = isBool;
    }

    private String Print(String param) {
        System.out.println(this.funId + " " + this.funName);
        return param;
    }

    @Override
    public void sayHello() {
        System.out.println("Hello");
    }

    @Override
    public void sayGoodBye() {
        System.out.println("GoodBye");
    }

}

interface ReflectTestInfo {
    void sayHello();
}

interface ReflectTest2Info {
    void sayGoodBye();
}

